package com.funmi.lizip.service;

import com.alibaba.fastjson.JSONObject;
import com.funmi.lizip.entity.PatrolTrack;
import com.funmi.lizip.entity.Personnel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.funmi.lizip.entity.dto.personnel.PersonnelUpdateRequest;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yeyg
 * @since 2022-11-03
 */
public interface PersonnelService extends IService<Personnel> {

    void getDetailed(int id);

    boolean updateByID(HashMap<String, Object> request);

    boolean deleteByID(int id);

    String getNameById(Integer id);

    void updateOtherMsg(JSONObject jsonObject);

    Personnel getByName(String rangerName);

    List<PatrolTrack> getAttendance(int id);

    boolean savePersonAndUser(Personnel personnel);
}
